package Test;

import java.util.Scanner;

public class Test2_RenRouJiSuanQi {
    public static void main(String[] args) {
        //定义一个方法，在方法内部定义两个变量，求出他们的和并进行打印

        computer();
    }

    public static void computer(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入num1：");
        int num1 = sc.nextInt();
        System.out.println("请输入num2：");
        int num2 = sc.nextInt();

        int sum = num1 + num2;
        System.out.println("和为：" + sum);

    }

}
